#{extends 'main.html' /}
 

<div id=main>
#{if userEntry==false}
</br>
You should join the organization to be able to view it's entities
<li><a href="@{Organizations.showOrganization(tagOrganization.id)}">Go to Organization</a>
			</li>

#{/if}

#{else}

<div id="content">
	<p class="field">
		<label>Tag name: </label> ${tag.name}
	</p>
			 #{if inSubscriber==false} 
			 <a	href="@{Tags.addSubscriber(tag.id)}" class="pill button">Follow</a><br />
			#{/if} 
			#{if inSubscriber==true} 
			<a href="@{Tags.removeSubscriber(tag.id)}" class="pill button">Unfollow</a><br /> 
			#{/if} 
	<br>


<li><a href="javascript: jQuery.facebox({ajax:'@{Tags.showTagIdeas(tag.id)}'});">Show Tag Ideas</a>
			</li>
</br>

<br>
<li><a href="javascript: jQuery.facebox({ajax:'@{Tags.showTagTopics(tag.id)}'});">Show Tag Topics</a>
			</li>
	
</div>
#{/else}
</div>